home *** CD-ROM | disk | FTP | other *** search
- // TCINTF.IDL local interfaces...
-
- // Needed for MIDL only...
- cpp_quote("#if 0")
- typedef void* hDrawing;
- typedef void* hGraphic;
- typedef void* hViewport;
- typedef void* hExtents;
- typedef void* hApp;
- typedef void* hVertex;
- // typedef int CCommandBarInfo;
- typedef void* LPMENUITEMINFO;
- cpp_quote("#endif")
-
- import "oaidl.idl";
- import "gxtypes.idl";
-
- interface ITcDrawing;
-
- // typedef struct PageSetupParams PageSetupParams;
-
- ///////////////////////////////////////////////////////////////////////////
- // ITcDrawing (local interface)
-
- [
- object
- ,local
- ,uuid(6A481201-E531-11CF-A115-00A024158DAF)
- ,helpcontext(0x12345678)
- ,helpstring("The drawing object.")
- ,pointer_default(unique)
- ]
- interface ITcDrawing : IUnknown
- {
- HRESULT _stdcall Save(LPCTSTR pszPathName, LPCTSTR cszFDesc, BOOL bReplace, BOOL bSelection);
- HRESULT _stdcall Close(BOOL bSaveChanges);
- HRESULT _stdcall Print(BOOL bShowDialog);
- HRESULT _stdcall SetPageSetup(const PAGESETUPPARAMS* pSetup);
- HRESULT _stdcall GetPageSetup(PAGESETUPPARAMS* pSetup);
- HRESULT _stdcall GetRelativeOrigin(hVertex v);
- // SRN 112498
- HRESULT _stdcall CameraUpdateViewport(DWORD GraphicID);
-
- // VV
- HRESULT _stdcall CreateWindowByCamera(DWORD CameraID);
- HRESULT _stdcall ActivateWindowByCamera(DWORD CameraID);
- // DIM
- HRESULT _stdcall CreateCameraByActiveView();
-
-
- HRESULT _stdcall UpdateRenderViewport(int SceneID);
- HRESULT _stdcall GetSaved(BOOL *pbSaved);
- HRESULT _stdcall SetSaved(BOOL bSaved);
- HRESULT _stdcall RenderScenesGraphicsUpdate(IDispatch *pDisp, ImsiRenderGraphicUpdate flag);
- HRESULT _stdcall RenderScenesUpdateChanges();
- HRESULT _stdcall ActivatePaperSpace(UINT nID);
- HRESULT _stdcall AddNewPaperSpace(LPCSTR PaperSpaceName, int *pID);
- }
-
- [
- object
- ,local
- ,uuid(6A481202-E531-11CF-A115-00A024158DAF)
- ,helpcontext(0x12345678)
- ,helpstring("The TurboCAD built-in View object.")
- ,pointer_default(unique)
- ]
- interface ITcView : IUnknown
- {
- HRESULT _stdcall Refresh();
- HRESULT _stdcall OnRender(UINT nID);
- HRESULT _stdcall RenderFinish(BOOL bWalkFinish, BOOL bWorldChange);
- HRESULT _stdcall OnLayerSetActivate(UINT LrSetID);
- }
-
- // TypeLibrary
-
-
- [
- uuid(80E6FEE0-4057-11d3-A7D8-00C0DF246524)
- ,version(4.0)
- ,helpcontext(0x12345678)
- ,helpstring("TurboCAD v4.1 Programmable Objects.")
- ]
- library TCGX
- {
- importlib("stdole32.tlb");
-
- typedef enum
- {
- ET_ITEMPROMPT = 0
- ,ET_FIRST_ID = 1
- ,ET_COUNT = 2
- ,ET_FINDEX = 3
- ,ET_ITEMTOOLTIP = 4
- ,ET_IMAGE_ID = 5
- ,ET_COMMANDNAME = 6
- ,ET_MENUNAME = 7
- ,ET_ENABLED = 8
- ,ET_BARNAME = 9
- ,ET_TINDEX = 10
- ,ET_TYPE = 11
- ,ET_STATUS = 12
- ,ET_COMMANDINTNAME = 13
- } ETREQUEST;
- ///////////////////////////////////////////////////////////////////////////
- // ITcApp (local interface)
-
- [object, local, uuid(6A481200-E531-11CF-A115-00A024158DAF),
- helpcontext(0x12345678),
- helpstring("The application (session) object."),
- pointer_default(unique)]
- interface ITcApp : IUnknown
- {
- HRESULT _stdcall GetTcDrawing(hDrawing d, long nDrawing, ITcDrawing** ppTcDrawing, BOOL Activate);
- HRESULT _stdcall SetActiveDrawing(hDrawing d, ITcDrawing** ppTcDrawing);
- HRESULT _stdcall GetActiveDrawing(ITcDrawing** ppTcDrawing);
- HRESULT _stdcall AbortScript();
- HRESULT _stdcall FileOpen(LPCTSTR pszPathName, ITcDrawing** ppTcDrawing);
- HRESULT _stdcall FileNew(LPCTSTR pszTemplate, ITcDrawing** ppTcDrawing);
- HRESULT _stdcall Exit();
- HRESULT _stdcall DragNew(UINT nDraggerKind);
- HRESULT _stdcall DragNextPointDown(UINT DraggerKind, LONG x, LONG y);
- HRESULT _stdcall DragNextPointUp(UINT DraggerKind, LONG x, LONG y);
- HRESULT _stdcall DragReset(UINT nFlags);
- HRESULT _stdcall DragDraw(LONG x, LONG y);
- HRESULT _stdcall DragLocalMenu(UINT nID);
- HRESULT _stdcall DragLocalMenuIndex(int nItem);
- HRESULT _stdcall DragGetLocalMenuSize(int nItem, UINT* pSize);
- HRESULT _stdcall DragOnEnterKey(UINT* pResult);
- HRESULT _stdcall DragOnCtrlEnterKey(UINT* pResult);
- HRESULT _stdcall DragEditFieldChanged(int nField, LPCWSTR str, UINT* pResult);
- HRESULT _stdcall DragEditFieldLock(UINT nField);
- HRESULT _stdcall DragEditFieldUnlock(UINT nField);
- HRESULT _stdcall DragGetAddedGraphic(hGraphic* pg);
- HRESULT _stdcall DragGetKind(UINT *pKind);
- HRESULT _stdcall SetSnapMode(UINT nSnaps);
- HRESULT _stdcall GetSnapMode(UINT* pSnaps);
- HRESULT _stdcall SelectGraphic(hGraphic g, BOOL bAddToSel);
- HRESULT _stdcall GetUserControl(BOOL* userControl);
- HRESULT _stdcall SetUserControl(BOOL userControl);
- HRESULT _stdcall GetVisible(BOOL* visible);
- HRESULT _stdcall SetVisible(BOOL visible);
- HRESULT _stdcall GetToolID(LPCTSTR name, UINT* pToolID);
- HRESULT _stdcall RunTool(UINT nToolID);
- HRESULT _stdcall ToolGetInt(int findex, int sindex, int WhichInt, long* prop);
- HRESULT _stdcall ToolSetInt(int findex, int sindex, int WhichInt, long prop);
- HRESULT _stdcall ToolGetString(int findex, int sindex, int WhichString, long lcid, BSTR* prop);
- HRESULT _stdcall ToolSetString(int findex, int sindex, int WhichString, long lcid, BSTR prop);
- HRESULT _stdcall ToolGetActive(int findex, int sindex, BOOL* prop);
- HRESULT _stdcall ToolActivate(int findex, int sindex);
- HRESULT _stdcall DoPick(int pickType, int* nAction, hDrawing* dPick, hViewport* vpPick,
- hExtents* ePick, long* snapModes);
- HRESULT _stdcall GetCommandBarInfo(COMMANDBARINFO** ppRoot, BOOL* pbDirty);
- HRESULT _stdcall ConnectEvents(IDispatch* EventSink, DWORD EventMask, long* ConnectionID);
- HRESULT _stdcall DisconnectEvents(long ConnectionID);
- HRESULT _stdcall QueryMenu(COMMANDBARINFO* pItem, LPMENUITEMINFO lpmii);
- HRESULT _stdcall ModifyMenu(short what, COMMANDBARINFO** ppItem, LPARAM lParam);
- HRESULT _stdcall OnSelectionChange(BOOL bCreateSelector);
- HRESULT _stdcall OpenCommandBarCfg(LPCTSTR pszFileName, long sections);
- HRESULT _stdcall SaveCommandBarCfg(LPCTSTR pszFileName, long sections);
-
- HRESULT _stdcall OnTurboLISP(BOOL bActivate);
-
- HRESULT _stdcall GoToURL(LPCTSTR pszPath);
- HRESULT _stdcall CloseAll(BOOL *bCancel);
- HRESULT _stdcall Help(long lHelpID);
- HRESULT _stdcall UpdateBlocksView();
- HRESULT _stdcall OnMessageLoop(BOOL* pbContinue, BOOL *pbRes);
-
- HRESULT _stdcall ToolGetPropertyValue (int findex, int sindex, VARIANT* pvarProp, VARIANT* pvarPropVal);
- HRESULT _stdcall ToolSetPropertyValue (int findex, int sindex, VARIANT* pvarProp, VARIANT* pvarPropVal);
-
- HRESULT _stdcall ToolGetPropertyType (int findex, int sindex, VARIANT* pvarProp, WORD* pwPropType);
- HRESULT _stdcall ToolGetPropertyName (int findex, int sindex, VARIANT* pvarProp, BSTR* bstrPropName);
-
- HRESULT _stdcall ToolGetPropertyState (int findex, int sindex, VARIANT* pvarProp, DWORD* pdwState);
- HRESULT _stdcall ToolSetPropertyState (int findex, int sindex, VARIANT* pvarProp, DWORD dwState);
-
- HRESULT _stdcall ToolGetPropertyID (int findex, int sindex, VARIANT* pvarProp, DWORD* pdwPropID);
- HRESULT _stdcall ToolGetPropertyIndex (int findex, int sindex, VARIANT* pvarProp, DWORD* pdwIndex);
-
- HRESULT _stdcall ToolGetPropertiesCount (int findex, int sindex, DWORD* pdwCount);
- HRESULT _stdcall ToolAddProperty (int findex, int sindex, BSTR bstrPropName, DWORD pdwPropID, VARIANT* pvarVal, DWORD* phProp);
- HRESULT _stdcall ToolRemoveProperty (int findex, int sindex, VARIANT* pvarProp);
-
- HRESULT _stdcall NextPoint (hVertex vXYZ, DWORD w);
- HRESULT _stdcall DragLocalMenuEx (UINT nID, UINT nFlags, hVertex);
- HRESULT _stdcall DragOnEditFieldChanged (int nField, LPCWSTR str, UINT* pResult);
- HRESULT _stdcall DragOnEditFieldLock (int nField, BOOL bFlag, UINT* pResult);
- HRESULT _stdcall Drag (hVertex vXYZ, DWORD w);
- HRESULT _stdcall DragDblClick ();
- HRESULT _stdcall DragShiftDown (UINT nCode);
- HRESULT _stdcall DragShiftUp (UINT nCode);
- HRESULT _stdcall DragTakeThisChar (UINT nChar, UINT nRepCnt, UINT nFlags, BOOL bShift);
- HRESULT _stdcall DragCancel ();
-
- HRESULT _stdcall RemoveBlock (hDrawing, long, BOOL);
-
- HRESULT _stdcall BRenderIsBreaked (HWND, MSG);
- }
- }
-